package service.impl;

import dao.TvDao;
import dao.impl.TvDaoImpl;
import model.Tv;
import service.TvService;

import java.util.List;

/**
 * @Description:
 * @Author one world
 * @Date 2020/9/23 0023 12:54
 */
public class TvServiceImpl implements TvService {
    TvDao dao = new TvDaoImpl();
    @Override
    public boolean add(Tv tv) {
        return dao.add(tv);
    }

    @Override
    public boolean del(int id) {
        return dao.delByPK(id);
    }

    @Override
    public boolean update(Tv tv) {
        return dao.update(tv);
    }

    @Override
    public List<Tv> findAll() {
        return dao.findAll();
    }

    @Override
    public Tv findById(int id) {
        return null;
    }
}
